﻿using ShanghaiMetroAPP.MetroDraw;
using ShanghaiMetroAPP.Model.SMAPPControl;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanghaiMetroAPP.Model
{
    public class MainWindowModel : BaseModel
    {
        public MainWindowModel()
        {
            _stations = new ObservableCollection<Station>(Station.LoadStations(null));
        }

        private DirectionInfoListModel _direction_list = null;
        public virtual DirectionInfoListModel DirectionList
        {
            get => _direction_list;
            set
            {
                _direction_list = value;
                this.notify(nameof(DirectionList));
            }
        }

        private ObservableCollection<Station> _stations;
        public ObservableCollection<Station> Stations { get => _stations; set { _stations = value; notify(nameof(Stations)); } }
    }
}
